-- GENERATED SPELL FOR [Armored Scorpid] --


function spell0_3126(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3126', 587, 1)
end

function spell1_3126(pUnit, Event) --@Scorpid Poison,n/a--
pUnit:FullCastSpellOnTarget(24640,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3126', 10000, 1)
end

function Sorts_3126(pUnit, Event)
local choix_sorts_3126 = math.random(0, 1)
if choix_sorts_3126 == 0 then
pUnit:RegisterEvent('spell0_3126', 1, 1)
end
if choix_sorts_3126 == 1 then
pUnit:RegisterEvent('spell1_3126', 1, 1)
end
end

function mob3126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3126', math.random(1500, 3000), 1)
end

function mob3126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3126, 1, 'mob3126_Action')
RegisterUnitEvent(3126, 2, 'mob3126_Leave')
RegisterUnitEvent(3126, 3, 'mob3126_Kill')
RegisterUnitEvent(3126, 4, 'mob3126_Die')
